<%@page import="java.util.Arrays"%>
<%@page
	import="com.sun.xml.internal.bind.v2.runtime.unmarshaller.XsiNilLoader.Array"%>
<%@page import="org.apache.catalina.Session"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="com.stx.model.InfoModel"%>
<%@page import="com.stx.sql.SqlQuery"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<link href="css/css.css" rel="stylesheet" type="text/css">
<script src="lib/jquery.js" type="text/javascript"></script>
<script src="lib/jquery.validate.js" type="text/javascript"></script>
<script src="localization/messages_cn.js" charset="UTF-8"
	type="text/javascript"></script>

<script type="text/javascript">
	$().ready(function() {
		//字母数字
		jQuery.validator.addMethod("alnum", function(value, element) {
			return this.optional(element) || /^[a-zA-Z0-9]+$/.test(value);
		}, "只能包括英文字母和数字");

		$("#myform").validate({
			rules : {
				username : {
					"required" : true,
					"alnum" : false
				},
				major : "required"
			}
		})
	});
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>五人行博客</title>
</head>
<body>
<%
			SqlQuery sqlQuery = new SqlQuery();
			InfoModel infoModel = new InfoModel();
			infoModel.setUsername(request.getParameter("username"));
			ResultSet rs = sqlQuery.infosql(infoModel);
			String result = null;			
			while (rs.next()) {%>
<img src="img/5.jpg" id="bgimage"/>
<div id="menu" class="transparent_class">
<span id="menuleft"><a href="welcome.jsp"><%=session.getAttribute("username") %></a>已登录</span>

<span id="menuright"><a href="login.jsp">退出</a>|<a href="register.html">注册</a></span>
</div><center>
<div id="infor" >
<h1><a href='welcome.jsp'><<返回欢迎页面</a>个人中心</h1>
</div></center>
	<div id="infore" >
		<ul>
			<li>用户ID:<%=rs.getString("u_id") %></li>
			<li>登录名：<%=rs.getString("username") %></li>
			<li>性&nbsp;&nbsp;&nbsp;&nbsp;别：<%=rs.getString("sex") %></li>
			<li>邮&nbsp;&nbsp;&nbsp;&nbsp;箱：<%=rs.getString("email") %></li>
			<li>爱&nbsp;&nbsp;&nbsp;&nbsp;好：<%=rs.getString("habby") %></li>
			<li>昵&nbsp;&nbsp;&nbsp;&nbsp;称：<%=rs.getString("nickname") %></li>
			<li>注册时间：<%=rs.getString("createtime") %></li>
		</ul>
	<%}%>
	</div>
	
</body>
</html>